package cn.edu.gzhu.workOrderManagement.pojo.dto.user;

import cn.edu.gzhu.workOrderManagement.constants.MessageConstant;
import cn.edu.gzhu.workOrderManagement.enumeration.UserAuthorityEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserListDto {
    private String username;
    private String name;
    private Boolean isAvailable;
    private UserAuthorityEnum authority;
    private String organization;

    private Integer teamId;

    private String teamName;

    @NotNull
    @Min(value = 1)
    private Integer startPage;
    @NotNull
    private Integer pageSize;
}
